package com.gu.mobileweb.controller;

import com.gu.mobileweb.model.IndexRoChart;
import com.gu.mobileweb.service.IndexRoChartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/home/RoChart")
public class IndexRoChartController {
    @Autowired
    private IndexRoChartService indexRoChartService;

    @GetMapping("/rcImage")
    public List<IndexRoChart> indexRoChart(){
        return indexRoChartService.indexRoChart();
    }

}
